﻿@model IEnumerable<AuditModel.Score>

@{
    ViewBag.Title = AuditResources.UI.PageTitle;
    Layout = "~/Views/Shared/Admin/_EventSettingLayout.cshtml";
    var grid = new WebGrid(source: Model, rowsPerPage: 20);
    string serialnumber=ViewBag.SerialNumber;
    string archiveid = ViewBag.ArchiveID;
    string subjectid = ViewBag.Subjet;
}

<h2>评分日志</h2>
<div class="padding_panel">
@using (Html.BeginForm()){
<text>评委编号: </text>@Html.TextBox("serialnumber", serialnumber, new { @class = "short" }) <text>档案编号: </text>@Html.TextBox("archiveid", archiveid, new { @class = "short" }) <text>学科组: </text>@Html.DropDownList("SubjectID", "所有")
<input type="submit" value="搜索" />
}
</div>
@grid.GetHtml(
columns:(grid.Columns(
    grid.Column("Archive.Subject.Name", AuditResources.Subject.ObjectName),
    grid.Column("ExpertJudgeSerialNumber", AuditResources.ExpertJudge.SerialNumber),
    grid.Column("ArchiveID", AuditResources.Archive.ID),
    grid.Column("MaterialScore", AuditResources.Score.MaterialScore),
    grid.Column("InstructionScore", AuditResources.Score.InstructionScore),
    grid.Column("DefenseScore", AuditResources.Score.DefenseScore),
    grid.Column("OtherScore", AuditResources.Score.OtherScore),
    grid.Column("TotalScore", "总分"),
        grid.Column("SubmitTime", AuditResources.Score.SubmitTime)
    )
)
)
  <div class="padding_panel">
@Html.ActionLink("导出Excel", "ScoreLogs.xls", "Report", new {subjectid=subjectid, archiveid=archiveid, serialnumber=serialnumber  }, new { @class = "button", target = "_blank" })
</div>
